<?php
/*
 * Created on 16/08/2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
$id 	= (isset($_GET["id"])) ? $_GET["id"] : "";
$tabela	= (isset($_GET["tbl"])) ? $_GET["tbl"] : "";

	include("../conexao/conexao.php");

	$conn = conectar();

	$retorno =  mysql_query("DELETE FROM $tabela WHERE id = $id") or die(mysql_error());
	
	Desconectar($conn);
	
	if($retorno != 1):
		echo $retorno;
	else:
		echo "Dados deletados com sucesso!";
	endif;
?>
